.class Lframent/FramentOrder2$GoodsAdapter;
.super Landroid/widget/BaseAdapter;
.source "FramentOrder2.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xb
.end annotation

.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lframent/FramentOrder2;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "GoodsAdapter"
.end annotation


# instance fields
.field goodsBeans11:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lframent/FramentOrder2;


# direct methods
.method public constructor <init>(Lframent/FramentOrder2;Ljava/util/ArrayList;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lbean/GoodsBean;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1178
    .local p2, "goodsBeans1":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lbean/GoodsBean;>;"
    iput-object p1, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 1180
    iput-object p2, p0, Lframent/FramentOrder2$GoodsAdapter;->goodsBeans11:Ljava/util/ArrayList;

    .line 1181
    return-void
.end method

.method static synthetic access$0(Lframent/FramentOrder2$GoodsAdapter;)Lframent/FramentOrder2;
    .locals 1

    .prologue
    .line 1175
    iget-object v0, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 1186
    iget-object v0, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v0}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 1192
    iget-object v0, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v0}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 1198
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 12
    .param p1, "arg0"    # I
    .param p2, "arg1"    # Landroid/view/View;
    .param p3, "arg2"    # Landroid/view/ViewGroup;

    .prologue
    const/4 v11, 0x1

    const/4 v10, -0x2

    const/4 v9, 0x0

    const/16 v8, 0x8

    .line 1208
    if-nez p2, :cond_6

    .line 1209
    new-instance v2, Lframent/FramentOrder2$MyHolder;

    invoke-direct {v2}, Lframent/FramentOrder2$MyHolder;-><init>()V

    .line 1210
    .local v2, "holder":Lframent/FramentOrder2$MyHolder;
    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    invoke-virtual {v5}, Lframent/FramentOrder2;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v5

    invoke-static {v5}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v5

    const v6, 0x7f030044

    const/4 v7, 0x0

    invoke-virtual {v5, v6, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 1212
    const v5, 0x7f0c0188

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->im_goods:Landroid/widget/ImageView;

    .line 1213
    const v5, 0x7f0c0189

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodname:Landroid/widget/TextView;

    .line 1214
    const v5, 0x7f0c018b

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodssellcount:Landroid/widget/TextView;

    .line 1215
    const v5, 0x7f0c018c

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodprice:Landroid/widget/TextView;

    .line 1216
    const v5, 0x7f0c0196

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->fen:Landroid/widget/TextView;

    .line 1217
    const v5, 0x7f0c0195

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->danwei:Landroid/widget/TextView;

    .line 1218
    const v5, 0x7f0c018f

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_delgdbtn:Landroid/widget/ImageView;

    .line 1219
    const v5, 0x7f0c0190

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodscountss:Landroid/widget/TextView;

    .line 1220
    const v5, 0x7f0c0191

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_addgdbtn:Landroid/widget/ImageView;

    .line 1221
    const v5, 0x7f0c018e

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    .line 1222
    const v5, 0x7f0c0192

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    .line 1223
    const v5, 0x7f0c0193

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    iput-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_chain_sellout:Landroid/widget/TextView;

    .line 1225
    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->m:Lmyapp/MyApp;
    invoke-static {v5}, Lframent/FramentOrder2;->access$11(Lframent/FramentOrder2;)Lmyapp/MyApp;

    move-result-object v5

    invoke-virtual {v5}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 1226
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    iget-object v6, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v6}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f07001f

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/Button;->setTextColor(I)V

    .line 1233
    :goto_0
    invoke-virtual {p2, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 1239
    :goto_1
    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v5}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 1240
    .local v0, "bean":Lbean/GoodsBean;
    invoke-virtual {v0}, Lbean/GoodsBean;->getimg()Ljava/lang/String;

    move-result-object v1

    .line 1243
    .local v1, "checkurl":Ljava/lang/String;
    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v5}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-lez v5, :cond_8

    .line 1244
    invoke-virtual {v0}, Lbean/GoodsBean;->getParent_id()Ljava/lang/String;

    move-result-object v6

    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v5}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5, v9}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    invoke-virtual {v5}, Lbean/GoodsBean;->getParent_id()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_7

    invoke-virtual {v0}, Lbean/GoodsBean;->getParent_id2()Ljava/lang/String;

    move-result-object v6

    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;
    invoke-static {v5}, Lframent/FramentOrder2;->access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;

    move-result-object v5

    invoke-virtual {v5, v9}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lbean/GoodsBean;

    invoke-virtual {v5}, Lbean/GoodsBean;->getParent_id2()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_7

    .line 1245
    invoke-virtual {p2, v9}, Landroid/view/View;->setVisibility(I)V

    .line 1254
    :goto_2
    if-eqz v1, :cond_0

    const-string v5, "1"

    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_0

    .line 1257
    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;
    invoke-static {v5}, Lframent/FramentOrder2;->access$12(Lframent/FramentOrder2;)Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v5

    iget-object v6, v2, Lframent/FramentOrder2$MyHolder;->im_goods:Landroid/widget/ImageView;

    invoke-static {}, Lmyapp/MyApp;->getDefaultOptions()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v7

    invoke-virtual {v5, v1, v6, v7}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 1260
    :cond_0
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodname:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1261
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodprice:Landroid/widget/TextView;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lbean/GoodsBean;->getcost()F

    move-result v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1264
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->fen:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1265
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodssellcount:Landroid/widget/TextView;

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "\u6708\u552e "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/GoodsBean;->getsellcount()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1267
    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # invokes: Lframent/FramentOrder2;->search(Lbean/GoodsBean;)I
    invoke-static {v5, v0}, Lframent/FramentOrder2;->access$13(Lframent/FramentOrder2;Lbean/GoodsBean;)I

    move-result v3

    .line 1270
    .local v3, "ind":I
    if-nez v3, :cond_9

    .line 1271
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodscountss:Landroid/widget/TextView;

    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1272
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_delgdbtn:Landroid/widget/ImageView;

    invoke-virtual {v5, v8}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1273
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodprice:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1274
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->danwei:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1275
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->fen:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1276
    new-instance v4, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->view:Landroid/view/View;
    invoke-static {v5}, Lframent/FramentOrder2;->access$14(Lframent/FramentOrder2;)Landroid/view/View;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v5

    invoke-direct {v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1277
    .local v4, "layoutParams":Landroid/widget/LinearLayout$LayoutParams;
    iput v10, v4, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 1278
    const/high16 v5, 0x41f00000    # 30.0f

    iget-object v6, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    invoke-virtual {v6}, Lframent/FramentOrder2;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v6

    invoke-static {v11, v5, v6}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v5

    float-to-int v5, v5

    iput v5, v4, Landroid/widget/LinearLayout$LayoutParams;->width:I

    .line 1280
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v4}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1300
    :goto_3
    invoke-virtual {v0}, Lbean/GoodsBean;->getHave_det()Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_a

    .line 1301
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    invoke-virtual {v5, v8}, Landroid/widget/Button;->setVisibility(I)V

    .line 1305
    :goto_4
    invoke-virtual {v0}, Lbean/GoodsBean;->getHave_det()Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_1

    invoke-virtual {v0}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    if-ge v5, v11, :cond_b

    .line 1306
    :cond_1
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 1313
    :goto_5
    invoke-virtual {v0}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    if-gtz v5, :cond_c

    .line 1314
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_chain_sellout:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1315
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 1328
    :goto_6
    const-string v5, "4"

    iget-object v6, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v6}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 1329
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_chain_sellout:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1330
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_chain_sellout:Landroid/widget/TextView;

    const-string v6, "\u4f11\u606f\u4e2d"

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1331
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 1332
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    invoke-virtual {v5, v8}, Landroid/widget/Button;->setVisibility(I)V

    .line 1336
    :cond_2
    const-string v5, "0"

    iget-object v6, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v6}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_3

    const-string v5, "1"

    iget-object v6, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v6}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 1337
    :cond_3
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_chain_sellout:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1338
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_chain_sellout:Landroid/widget/TextView;

    const-string v6, "\u5df2\u6253\u70ca"

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1339
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 1340
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    invoke-virtual {v5, v8}, Landroid/widget/Button;->setVisibility(I)V

    .line 1344
    :cond_4
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_addgdbtn:Landroid/widget/ImageView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 1345
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_addgdbtn:Landroid/widget/ImageView;

    new-instance v6, Lframent/FramentOrder2$GoodsAdapter$1;

    invoke-direct {v6, p0}, Lframent/FramentOrder2$GoodsAdapter$1;-><init>(Lframent/FramentOrder2$GoodsAdapter;)V

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1356
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_delgdbtn:Landroid/widget/ImageView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 1357
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_delgdbtn:Landroid/widget/ImageView;

    new-instance v6, Lframent/FramentOrder2$GoodsAdapter$2;

    invoke-direct {v6, p0}, Lframent/FramentOrder2$GoodsAdapter$2;-><init>(Lframent/FramentOrder2$GoodsAdapter;)V

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1368
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    invoke-virtual {v5, p1}, Landroid/widget/Button;->setId(I)V

    .line 1369
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    new-instance v6, Lframent/FramentOrder2$GoodsAdapter$3;

    invoke-direct {v6, p0}, Lframent/FramentOrder2$GoodsAdapter$3;-><init>(Lframent/FramentOrder2$GoodsAdapter;)V

    invoke-virtual {v5, v6}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1382
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->im_goods:Landroid/widget/ImageView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    .line 1383
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->im_goods:Landroid/widget/ImageView;

    new-instance v6, Lframent/FramentOrder2$GoodsAdapter$4;

    invoke-direct {v6, p0}, Lframent/FramentOrder2$GoodsAdapter$4;-><init>(Lframent/FramentOrder2$GoodsAdapter;)V

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1407
    return-object p2

    .line 1228
    .end local v0    # "bean":Lbean/GoodsBean;
    .end local v1    # "checkurl":Ljava/lang/String;
    .end local v3    # "ind":I
    .end local v4    # "layoutParams":Landroid/widget/LinearLayout$LayoutParams;
    :cond_5
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    iget-object v6, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v6}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f070001

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/Button;->setTextColor(I)V

    goto/16 :goto_0

    .line 1235
    .end local v2    # "holder":Lframent/FramentOrder2$MyHolder;
    :cond_6
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lframent/FramentOrder2$MyHolder;

    .restart local v2    # "holder":Lframent/FramentOrder2$MyHolder;
    goto/16 :goto_1

    .line 1248
    .restart local v0    # "bean":Lbean/GoodsBean;
    .restart local v1    # "checkurl":Ljava/lang/String;
    :cond_7
    invoke-virtual {p2, v8}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_2

    .line 1251
    :cond_8
    invoke-virtual {p2, v8}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_2

    .line 1284
    .restart local v3    # "ind":I
    :cond_9
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodscountss:Landroid/widget/TextView;

    invoke-virtual {v5, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1285
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->chain_delgdbtn:Landroid/widget/ImageView;

    invoke-virtual {v5, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 1286
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodprice:Landroid/widget/TextView;

    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1287
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->danwei:Landroid/widget/TextView;

    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1288
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->fen:Landroid/widget/TextView;

    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1289
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->tv_goodscountss:Landroid/widget/TextView;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1291
    new-instance v4, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v5, p0, Lframent/FramentOrder2$GoodsAdapter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->view:Landroid/view/View;
    invoke-static {v5}, Lframent/FramentOrder2;->access$14(Lframent/FramentOrder2;)Landroid/view/View;

    move-result-object v5

    invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v5

    invoke-direct {v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1292
    .restart local v4    # "layoutParams":Landroid/widget/LinearLayout$LayoutParams;
    iput v10, v4, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 1293
    const/4 v5, -0x1

    iput v5, v4, Landroid/widget/LinearLayout$LayoutParams;->width:I

    .line 1295
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v4}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_3

    .line 1303
    :cond_a
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->bt_guige:Landroid/widget/Button;

    invoke-virtual {v5, v8}, Landroid/widget/Button;->setVisibility(I)V

    goto/16 :goto_4

    .line 1309
    :cond_b
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v9}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_5

    .line 1318
    :cond_c
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_chain_sellout:Landroid/widget/TextView;

    invoke-virtual {v5, v8}, Landroid/widget/TextView;->setVisibility(I)V

    .line 1319
    invoke-virtual {v0}, Lbean/GoodsBean;->getHave_det()Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_d

    .line 1320
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_6

    .line 1322
    :cond_d
    iget-object v5, v2, Lframent/FramentOrder2$MyHolder;->ll_choose_option:Landroid/widget/LinearLayout;

    invoke-virtual {v5, v9}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_6
.end method
